package com.ruoyi.repair.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡检计划对象 property_inspection_plan
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class PropertyInspectionPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划ID */
    private Long planId;

    /** 所属楼盘 */
    @Excel(name = "所属楼盘")
    private Long buildingId;

    /** 计划名称 */
    @Excel(name = "计划名称")
    private String planName;

    /** 巡检类型：SECURITY/FACILITY/EQUIPMENT */
    @Excel(name = "巡检类型：SECURITY/FACILITY/EQUIPMENT")
    private String type;

    /** 频率：DAILY/WEEKLY/MONTHLY */
    @Excel(name = "频率：DAILY/WEEKLY/MONTHLY")
    private String frequency;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 巡检路线 */
    @Excel(name = "巡检路线")
    private String route;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer isEnabled;

    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }

    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }

    public void setPlanName(String planName) 
    {
        this.planName = planName;
    }

    public String getPlanName() 
    {
        return planName;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setFrequency(String frequency) 
    {
        this.frequency = frequency;
    }

    public String getFrequency() 
    {
        return frequency;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setRoute(String route) 
    {
        this.route = route;
    }

    public String getRoute() 
    {
        return route;
    }

    public void setIsEnabled(Integer isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public Integer getIsEnabled() 
    {
        return isEnabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("planId", getPlanId())
            .append("buildingId", getBuildingId())
            .append("planName", getPlanName())
            .append("type", getType())
            .append("frequency", getFrequency())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("route", getRoute())
            .append("isEnabled", getIsEnabled())
            .toString();
    }
}
